﻿function EditController($scope, service, $routeParams, $location, $http) {

    //$scope.rowsData = [];


//get id
    $http.get("api/StaffTest/" + $routeParams.Id, {})
        .success(function(data) {
            //$scope.StaffId = data.StaffId;
            if ($routeParams.RowStatus == "b") {
                console.log("yearrrrrrrr");
            }
            angular.extend($scope, data);
        })
        .error(function(err) {

            console.log("error", err);
        });


}